package project5;

import java.io.Serializable;
import java.util.*;

public class FreqRepresenter implements Serializable, Comparable<FreqRepresenter>
{
	public static final long serialVersionUID = 578195;

	String fileName;
	BitSet doesContain;
	ArrayList<Integer> frequncies;
	int cardinalityAfterAnding;

	public int compareTo(FreqRepresenter obj)
	{
		FreqRepresenter pi = (FreqRepresenter) obj;
		Integer card1 =  cardinalityAfterAnding;
		Integer card2 =   pi.cardinalityAfterAnding;

		return card1.compareTo(card2);

	}
}
